from google.appengine.ext import webapp
from google.appengine.ext.webapp import util

from header import *
from footer import *
from toidi import *

class MainHandler(webapp.RequestHandler):

  def get(self):
      render_header(self.response, self.request, {'title': 'Downloads'})
      self.response.out.write(template.render(toidi_template('downloads'), {}))
      render_footer(self.response, {})


def main():
  application = webapp.WSGIApplication([('/downloads', MainHandler)],
                                       debug=True)
  util.run_wsgi_app(application)


if __name__ == '__main__':
  main()
